if (CMAKE_HOST_WIN32)

	SET(APR-UTIL_DIR ${THIRD_PARTY}/windows/x86/apr-util)
	if(CMAKE_SIZEOF_VOID_P EQUAL 8)
		SET(APR-UTIL_DIR ${THIRD_PARTY}/windows/x64/apr-util)
	endif()

	SET(APR-UTIL_INCLUDE_DIR ${APR-UTIL_DIR}/include)
	SET(APR-UTIL_LIB_DIR  ${APR-UTIL_DIR}/lib)
	SET(APR-UTIL_LIBS libaprutil-1)

ELSE()

	IF(CMAKE_TOOLCHAIN_FILE)
		IF (CMAKE_SYSTEM_NAME STREQUAL Android)

			IF (ANDROID_ABI STREQUAL armeabi-v7a)
				SET(APR-UTIL_DIR ${THIRD_PARTY}/android/apr-util/armeabi-v7a)
			ELSEIF (ANDROID_ABI STREQUAL arm64-v8a)
				SET(APR-UTIL_DIR ${THIRD_PARTY}/android/apr-util/arm64-v8a)
			ENDIF()

			SET(APR-UTIL_INCLUDE_DIR ${APR-UTIL_DIR}/include)
			SET(APR-UTIL_LIB_DIR ${APR-UTIL_DIR}/lib)

		ELSEIF (CMAKE_C_COMPILER MATCHES "hisiv300")
			SET(APR-UTIL_DIR ${THIRD_PARTY}/hisiv300/apr-util)
			SET(APR-UTIL_INCLUDE_DIR ${APR-UTIL_DIR}/include)
			SET(APR-UTIL_LIB_DIR ${APR-UTIL_DIR}/lib)
		ELSEIF (CMAKE_C_COMPILER MATCHES "hisiv400")
			SET(APR-UTIL_DIR ${THIRD_PARTY}/hisiv400/apr-util)
			SET(APR-UTIL_INCLUDE_DIR ${APR-UTIL_DIR}/include)
			SET(APR-UTIL_LIB_DIR ${APR-UTIL_DIR}/lib)
		ELSEIF (CMAKE_C_COMPILER MATCHES "hisiv500")
			SET(APR-UTIL_DIR ${THIRD_PARTY}/hisiv500/apr-util)
			SET(APR-UTIL_INCLUDE_DIR ${APR-UTIL_DIR}/include)
			SET(APR-UTIL_LIB_DIR ${APR-UTIL_DIR}/lib)
		ELSEIF (CMAKE_C_COMPILER MATCHES "hisiv600")
			SET(APR-UTIL_DIR ${THIRD_PARTY}/hisiv600/apr-util)
			SET(APR-UTIL_INCLUDE_DIR ${APR-UTIL_DIR}/include)
			SET(APR-UTIL_LIB_DIR ${APR-UTIL_DIR}/lib)
		ELSEIF (CMAKE_C_COMPILER MATCHES "himix100")
			SET(APR-UTIL_DIR ${THIRD_PARTY}/himix100/apr-util)
			SET(APR-UTIL_INCLUDE_DIR ${APR-UTIL_DIR}/include)
			SET(APR-UTIL_LIB_DIR ${APR-UTIL_DIR}/lib)
		ELSEIF (CMAKE_C_COMPILER MATCHES "himix200")
			SET(APR-UTIL_DIR ${THIRD_PARTY}/himix200/apr-util)
			SET(APR-UTIL_INCLUDE_DIR ${APR-UTIL_DIR}/include)
			SET(APR-UTIL_LIB_DIR ${APR-UTIL_DIR}/lib)
		ELSEIF (CMAKE_C_COMPILER MATCHES "histbv320")
			SET(APR-UTIL_DIR ${THIRD_PARTY}/histbv320/apr-util)
			SET(APR-UTIL_INCLUDE_DIR ${APR-UTIL_DIR}/include)
			SET(APR-UTIL_LIB_DIR ${APR-UTIL_DIR}/lib)
		ELSEIF (CMAKE_C_COMPILER MATCHES "arm-none")
			SET(APR-UTIL_DIR ${THIRD_PARTY}/rpi/apr-util)
			SET(APR-UTIL_INCLUDE_DIR ${APR-UTIL_DIR}/include)
			SET(APR-UTIL_LIB_DIR ${APR-UTIL_DIR}/lib)
		ELSEIF (CMAKE_C_COMPILER MATCHES "gcc")
			SET(APR-UTIL_DIR ${THIRD_PARTY}/gcc/apr-util)
			SET(APR-UTIL_INCLUDE_DIR ${APR-UTIL_DIR}/include)
			SET(APR-UTIL_LIB_DIR ${APR-UTIL_DIR}/lib)
		ENDIF()

		SET(APR-UTIL_LIBS aprutil-1)
	ELSE()
		SET(APR-UTIL_DIR ${THIRD_PARTY}/gcc/apr-util)
		SET(APR-UTIL_INCLUDE_DIR ${APR-UTIL_DIR}/include)
		SET(APR-UTIL_LIB_DIR ${APR-UTIL_DIR}/lib)
		SET(APR-UTIL_LIBS aprutil-1)
	ENDIF()	
ENDIF()
